﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
//using BTGISWASECO.BusinessEntities;

/// <summary>
/// Summary description for DongHoTongEntities
/// </summary>
namespace BTGISWASECO.BusinessEntities
{
    public class DongHoTongEntities
    {
        #region khai bao thuoc tinh
        private int _objectID;
        private string _IDDongHo;
        private string _IDDMZ;
        private string _IDDMA;
        private int _TieuChuan;
        private string _TieuChuanText;
        private int _NamSanXuat;
        private int _NhaSanXuat;
        private string _NhaSanXuatText;
        private int _NuocSanXuat;
        private string _NuocSanXuatText;
        private int _SoThan;
        private int _LoaiCTDH;
        private string _LoaiCTDHText;
        private int _LoaiCCVH;
        private string _LoaiCCVHText;
        private int _LoaiMatSo;
        private string _LoaiMatSoText;
        private DateTime _NgayLapDat;
        private string _MoTaViTri;
        private int _TinhTrang;
        private string _TinhTrangText;
        private string _DonViDo;
        private double _LuuLuongNN;
        private double _LuuLuongLN;
        private double _ApLuc;
        private int _SoLanThay;
        private int _DonViTC;
        private string _DonViTCText;
        private int _DonViTK;
        private string _DonViTKText;
        private double _DoChinhXac;
        private int _DonViQL;
        private string _DonViQLText;
        private string _SoNha;
        private string _MaDuong;
        private string _MaPhuong;
        private string _MaQuan;
        private string _KichCo;
        private string _KichCoText;
        private string _SoSeries;
        private int _SoLanSuCo;
        private string _THDataLogger;
        private int _ThuocSoHuu;
        private string _ThuocSoHuuText;
        private string _NguoiCNCuoi;
        private DateTime _NgayCNCuoi;
        private string _GhiChu;
        private string _IDHinhAnh;

        public string SoNha
        {
            get { return _SoNha; }
            set { _SoNha = value; }
        }

        public string MaDuong
        {
            get { return _MaDuong; }
            set { _MaDuong = value; }
        }

        public string MaQuan
        {
            get { return _MaQuan; }
            set { _MaQuan = value; }
        }

        public string MaPhuong
        {
            get { return _MaPhuong; }
            set { _MaPhuong = value; }
        }

        public DateTime NgayLapDat
        {
            get { return _NgayLapDat; }
            set { _NgayLapDat = value; }
        }

        public string DonViQLText
        {
            get { return _DonViQLText; }
            set { _DonViQLText = value; }
        }


        public int DonViQL
        {
            get { return _DonViQL; }
            set { _DonViQL = value; }
        }

        public string DonViTCText
        {
            get { return _DonViTCText; }
            set { _DonViTCText = value; }
        }

        public int DonViTC
        {
            get { return _DonViTC; }
            set { _DonViTC = value; }
        }

        public int NamSanXuat
        {
            get { return _NamSanXuat; }
            set { _NamSanXuat = value; }
        }


        public string DonViDo
        {
            get { return _DonViDo; }
            set { _DonViDo = value; }
        }

        public int SoLanThay
        {
            get { return _SoLanThay; }
            set { _SoLanThay = value; }
        }


        public string KichCoText
        {
            get { return _KichCoText; }
            set { _KichCoText = value; }
        }

        public string NhaSanXuatText
        {
            get { return _NhaSanXuatText; }
            set { _NhaSanXuatText = value; }
        }

        public string THDataLogger
        {
            get { return _THDataLogger; }
            set { _THDataLogger = value; }
        }

        public string ThuocSoHuuText
        {
            get { return _ThuocSoHuuText; }
            set { _ThuocSoHuuText = value; }
        }

        public string DonViTKText
        {
            get { return _DonViTKText; }
            set { _DonViTKText = value; }
        }

        public string SoSeries
        {
            get { return _SoSeries; }
            set { _SoSeries = value; }
        }

        public string TinhTrangText
        {
            get { return _TinhTrangText; }
            set { _TinhTrangText = value; }
        }

        public string NuocSanXuatText
        {
            get { return _NuocSanXuatText; }
            set { _NuocSanXuatText = value; }
        }


        public string TieuChuanText
        {
            get { return _TieuChuanText; }
            set { _TieuChuanText = value; }
        }

        public string LoaiCCVHText
        {
            get { return _LoaiCCVHText; }
            set { _LoaiCCVHText = value; }
        }

        public string LoaiMatSoText
        {
            get { return _LoaiMatSoText; }
            set { _LoaiMatSoText = value; }
        }

        public int LoaiCTDH
        {
            get { return _LoaiCTDH; }
            set { _LoaiCTDH = value; }
        }

        public string LoaiCTDHText
        {
            get { return _LoaiCTDHText; }
            set { _LoaiCTDHText = value; }
        }

        public int NhaSanXuat
        {
            get { return _NhaSanXuat; }
            set { _NhaSanXuat = value; }
        }


        public string GhiChu
        {
            get { return _GhiChu; }
            set { _GhiChu = value; }
        }


        public string IDHinhAnh
        {
            get { return _IDHinhAnh; }
            set { _IDHinhAnh = value; }
        }

        public string NguoiCNCuoi
        {
            get { return _NguoiCNCuoi; }
            set { _NguoiCNCuoi = value; }
        }


        public DateTime NgayCNCuoi
        {
            get { return _NgayCNCuoi; }
            set { _NgayCNCuoi = value; }
        }

        public int ThuocSoHuu
        {
            get { return _ThuocSoHuu; }
            set { _ThuocSoHuu = value; }
        }

        public int DonViTK
        {
            get { return _DonViTK; }
            set { _DonViTK = value; }
        }

        public int SoLanSuCo
        {
            get { return _SoLanSuCo; }
            set { _SoLanSuCo = value; }
        }

        public int LoaiMatSo
        {
            get { return _LoaiMatSo; }
            set { _LoaiMatSo = value; }
        }

        public string KichCo
        {
            get { return _KichCo; }
            set { _KichCo = value; }
        }



        public int TinhTrang
        {
            get { return _TinhTrang; }
            set { _TinhTrang = value; }
        }

        public double DoChinhXac
        {
            get { return _DoChinhXac; }
            set { _DoChinhXac = value; }
        }


        public string MoTaViTri
        {
            get { return _MoTaViTri; }
            set { _MoTaViTri = value; }
        }

        public int SoThan
        {
            get { return _SoThan; }
            set { _SoThan = value; }
        }

        public double ApLuc
        {
            get { return _ApLuc; }
            set { _ApLuc = value; }
        }


        public double LuuLuongLN
        {
            get { return _LuuLuongLN; }
            set { _LuuLuongLN = value; }
        }

        public int NuocSanXuat
        {
            get { return _NuocSanXuat; }
            set { _NuocSanXuat = value; }
        }

        public int TieuChuan
        {
            get { return _TieuChuan; }
            set { _TieuChuan = value; }
        }

        public int LoaiCCVH
        {
            get { return _LoaiCCVH; }
            set { _LoaiCCVH = value; }
        }
        
        public int OBJECTID
        {
            get { return _objectID; }
            set { _objectID = value; }
        }

        public string IDDongHo
        {
            get { return _IDDongHo; }
            set { _IDDongHo = value; }
        }

        public string IDDMZ
        {
            get { return _IDDMZ; }
            set { _IDDMZ = value; }
        }

        public string IDDMA
        {
            get { return _IDDMA; }
            set { _IDDMA = value; }
        }

        public double LuuLuongNN
        {
            get { return _LuuLuongNN; }
            set { _LuuLuongNN = value; }
        }

        # endregion khai bao

        #region phuong thuc

        public DongHoTongEntities()
        {

        }

        public DongHoTongEntities(string IDDongHo, string IDDMZ,
         string IDDMA, int TieuChuan, int NamSanXuat,
         int NhaSanXuat, int NuocSanXuat, int SoThan,
         int LoaiCTDH, int LoaiCCVH, int LoaiMatSo,
         DateTime NgayLapDat, string MoTaViTri, int TinhTrang,
         string DonViDo, double LuuLuongNN, double LuuLuongLN,
         double ApLuc, int SoLanThay, int DonViTC,
         int DonViTK, double DoChinhXac, int DonViQL,
         string SoNha, string MaDuong, string MaPhuong,
         string MaQuan, string KichCo, string SoSeries,
         int SoLanSuCo, string THDataLogger, int ThuocSoHuu,
         string NguoiCNCuoi, DateTime NgayCNCuoi, string GhiChu, string IDHinhAnh)
        {
            this._IDDongHo = IDDongHo;
            this._IDDMZ = IDDMZ;
            this._IDDMA = IDDMA;
            this._TieuChuan = TieuChuan;
            this._NamSanXuat = NamSanXuat;
            this._NhaSanXuat = NhaSanXuat;
            this._NuocSanXuat = NuocSanXuat;
            this._SoThan = SoThan;
            this._LoaiCTDH = LoaiCTDH;
            this._LoaiCCVH = LoaiCCVH;
            this._LoaiMatSo = LoaiMatSo;
            this._NgayLapDat = NgayLapDat;
            this._MoTaViTri = MoTaViTri;
            this._TinhTrang = TinhTrang;
            this._DonViDo = DonViDo;
            this._LuuLuongNN = LuuLuongNN;
            this._LuuLuongLN = LuuLuongLN;
            this._ApLuc = ApLuc;
            this._SoLanThay = SoLanThay;
            this._DonViTC = DonViTC;
            this._DonViTK = DonViTK;
            this._DoChinhXac = DoChinhXac;
            this._DonViQL = DonViQL;
            this._SoNha = SoNha;
            this._MaDuong = MaDuong;
            this._MaPhuong = MaPhuong;
            this._MaQuan = MaQuan;
            this._KichCo = KichCo;
            this._SoSeries = SoSeries;
            this._SoLanSuCo = SoLanSuCo;
            this._THDataLogger = THDataLogger;
            this._ThuocSoHuu = ThuocSoHuu;
            this._NguoiCNCuoi = NguoiCNCuoi;
            this._NgayCNCuoi = NgayCNCuoi;
            this._GhiChu = GhiChu;
            this.IDHinhAnh = IDHinhAnh;
        }
        public DongHoTongEntities(int OBJECTID, string IDDongHo, string IDDMZ,
         string IDDMA, int TieuChuan, int NamSanXuat,
         int NhaSanXuat, int NuocSanXuat, int SoThan,
         int LoaiCTDH, int LoaiCCVH, int LoaiMatSo,
         DateTime NgayLapDat, string MoTaViTri, int TinhTrang,
         string DonViDo, double LuuLuongNN, double LuuLuongLN,
         double ApLuc, int SoLanThay, int DonViTC,
         int DonViTK, double DoChinhXac, int DonViQL,
         string SoNha, string MaDuong, string MaPhuong,
         string MaQuan, string KichCo, string SoSeries,
         int SoLanSuCo, string THDataLogger, int ThuocSoHuu,
         string NguoiCNCuoi, DateTime NgayCNCuoi, string GhiChu, string IDHinhAnh)
        {
            this._objectID = OBJECTID;
            this._IDDongHo = IDDongHo;
            this._IDDMZ = IDDMZ;
            this._IDDMA = IDDMA;
            this._TieuChuan = TieuChuan;
            this._NamSanXuat = NamSanXuat;
            this._NhaSanXuat = NhaSanXuat;
            this._NuocSanXuat = NuocSanXuat;
            this._SoThan = SoThan;
            this._LoaiCTDH = LoaiCTDH;
            this._LoaiCCVH = LoaiCCVH;
            this._LoaiMatSo = LoaiMatSo;
            this._NgayLapDat = NgayLapDat;
            this._MoTaViTri = MoTaViTri;
            this._TinhTrang = TinhTrang;
            this._DonViDo = DonViDo;
            this._LuuLuongNN = LuuLuongNN;
            this._LuuLuongLN = LuuLuongLN;
            this._ApLuc = ApLuc;
            this._SoLanThay = SoLanThay;
            this._DonViTC = DonViTC;
            this._DonViTK = DonViTK;
            this._DoChinhXac = DoChinhXac;
            this._DonViQL = DonViQL;
            this._SoNha = SoNha;
            this._MaDuong = MaDuong;
            this._MaPhuong = MaPhuong;
            this._MaQuan = MaQuan;
            this._KichCo = KichCo;
            this._SoSeries = SoSeries;
            this._SoLanSuCo = SoLanSuCo;
            this._THDataLogger = THDataLogger;
            this._ThuocSoHuu = ThuocSoHuu;
            this._NguoiCNCuoi = NguoiCNCuoi;
            this._NgayCNCuoi = NgayCNCuoi;
            this._GhiChu = GhiChu;
            this.IDHinhAnh = IDHinhAnh;
        }

        public DongHoTongEntities(DataRow row)
        {
            this._objectID = Convert.ToInt32(row["OBJECTID"]);
            this._IDDongHo = row["IDDongHo"].ToString();
            this._IDDMA = row["IDDMA"].ToString();
            this._IDDMZ = row["IDDMZ"].ToString();
            this._TieuChuanText = row["TieuChuan"].ToString();
            if (row["NamSanXuat"].ToString() != "Null")
            this._NamSanXuat = Convert.ToInt32(row["NamSanXuat"]);
            this._NhaSanXuatText = row["NhaSanXuat"].ToString();
            this._NuocSanXuatText = row["NuocSanXuat"].ToString();
            if (row["SoThan"].ToString() != "Null")
            this._SoThan = Convert.ToInt32(row["SoThan"]);
            this._LoaiCTDHText = row["LoaiCTDH"].ToString();
            this._LoaiCCVHText = row["LoạiCCVH"].ToString();
            this._LoaiMatSoText = row["LoaiMatSo"].ToString();
            if (row["NgayLapDat"].ToString() != "Null")
                this._NgayLapDat = Convert.ToDateTime(row["NgayLapDat"]);
            this._MoTaViTri = row["MoTaViTri"].ToString();
            this._TinhTrangText = row["TinhTrang"].ToString();
            this._DonViDo = row["DonViDo"].ToString();
            if (row["LuuLuongNN"].ToString() != "Null")
            this._LuuLuongNN = Convert.ToDouble(row["LuuLuongNN"]);
            if (row["LuuLuongLN"].ToString() != "Null")
            this._LuuLuongLN = Convert.ToDouble(row["LuuLuongLN"]);
            if (row["ApLuc"].ToString() != "Null")
                this._ApLuc = Convert.ToDouble(row["ApLuc"]);
            if (row["SoLanThay"].ToString() != "Null")
                this._SoLanThay = Convert.ToInt32(row["SoLanThay"]);
            this._DonViTCText = row["DonViTC"].ToString();
            this._DonViTKText = row["DonViTK"].ToString();
            if (row["DoChinhXac"].ToString() != "Null")
                this._DoChinhXac = Convert.ToDouble(row["DoChinhXac"]);
            this._SoNha = row["SoNha"].ToString();
            this._MaDuong = row["MaDuong"].ToString();
            this._MaPhuong = row["MaPhuong"].ToString();
            this._MaQuan = row["MaQuan"].ToString();
            this._KichCo = row["KichCo"].ToString();
            this._SoSeries = row["SoSeries"].ToString();
            if (row["SoLanSuCo"].ToString() != "Null")
                this._SoLanSuCo = Convert.ToInt32(row["SoLanSuCo"]);
            this._THDataLogger = row["THDataLogger"].ToString();
            this._ThuocSoHuuText = row["ThuocSoHuu"].ToString();
            this._NguoiCNCuoi = row["NguoiCNCuoi"].ToString();
            if (row["NgayCNCuoi"].ToString() != "Null")
                this._NgayCNCuoi = Convert.ToDateTime(row["NgayCNCuoi"]);
            this._GhiChu = row["GhiChu"].ToString();
            this._IDHinhAnh = row["IDHinhAnh"].ToString();
        }


        #endregion phuong thuc
    }
}